package org.vincen.springapp.domain.diogenes;

import java.io.Serializable;

import javax.persistence.Access;
import javax.persistence.AccessType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema = "diogenes", name = "T_JOB")
@Access(AccessType.FIELD)
public class Job implements Serializable{
	
	private static final long serialVersionUID = 8579661232344955035L;

	@Id
	@Column(name="job_id")
	@SequenceGenerator(schema="diogenes", name="Job_gen", sequenceName="JOB_GEN")
	@GeneratedValue(generator="Job_gen")
	private Integer jobId;
	@Column(name="job_title")
	private String jobTitle;
	
	public String getJobTitle() {
		return jobTitle;
	}
	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}
	public Integer getJobId() {
		return jobId;
	}
	
}
